Tham khảo Khai_báo_(khoa_học_máy_tính)

  1. 1 2 3 "A declaration specifies the interpretation and attributes of a set of identifiers. A definition of an identifier is a declaration for that identifier that:
    • for an object [variable or constant], causes storage to be reserved for that object;
    • for a function, includes the function body;
    • for an enumeration constant, is the (only) declaration of the identifier;
    • for a typedef name, is the first (or only) declaration of the identifier."
    C11 specification, 6.7: Declarations, paragraph 5.
  2. Mike Banahan. “2.5. Declaration of variables”. http://publications.gbdirect.co.uk/c_book/: GBdirect. Truy cập ngày 8 tháng 6 năm 2011. [A] declaration [...] introduces just the name and type of something but allocates no storage[...].